package com.nanbei.eduService.service;

import com.nanbei.eduService.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nanbei.eduService.entity.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-12-29
 */
public interface EduChapterService extends IService<EduChapter> {

    List<ChapterVo> findChapterVideoById(String courseId);

    //根据ID删除章节信息，章节中如果含有小节则不能删除
    Boolean delChapterById(String chapterId);

    //根据课程ID删除章节信息
    void delChapterByCourseById(String courseId);
}
